﻿using System;
using System.Collections.Generic;
using System.Text;
using Bussiness.Model;
using Bussiness.Service.Factory;
using NUnit.Framework;

namespace Bussiness.Test {
    [TestFixture]
    class TestCategoryService {

        [Test]
        public void TestAddCategory()
        {
            var category = new Category("Product", " Product description", "product");
            CategoryServiceUtil.AddCategory(category);
        }

        [Test]
        public void TestDeleteCategory()
        {
            CategoryServiceUtil.DeleteCategory(1);
        }

        [Test]
        public void FindById()
        {
            Category category = CategoryServiceUtil.FindCategory(1);
            CategoryServiceUtil.DeleteCategory(category);
        }
    }
}
